import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import {
  IsDate,
  IsDateString,
  IsNumber,
  IsOptional,
  IsString,
} from 'class-validator';

export class RecordEntity {
  @ApiProperty()
  @IsString()
  styleId: string;
  @ApiProperty()
  @IsString()
  processId: string;
  @ApiProperty()
  @IsString()
  workerId: string;
  @ApiProperty()
  @IsString()
  sizeId: string;
  @ApiProperty()
  @IsNumber()
  number: number;
  @ApiProperty()
  @IsDateString()
  date: Date;
  @ApiPropertyOptional()
  @IsString()
  @IsOptional()
  description?: string;
}
